<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>channel - WebIM</title>
</head>
<body>

<script type="text/javascript">
window.g_is_mobile_client = false;
window.g_client_type = 'webclient';
window.g_load_balance_key = (new Date()).getTime() % 100;
window.MAX_SUB_CHANNEL_KEY = 99;
window.CHANNEL_LIST = [0, 1];
</script>

<script type="text/javascript" src="http://imstatic.bang.360.cn/js/jquery_plugin/jquery.js"></script>
<script type="text/javascript" src="http://imstatic.bang.360.cn/chat-channel.js?r=4"></script>
<script type="text/javascript">
/*
 * Author: yuwei.mu@gmail.com
 * Date: 2013-05
*/ 
$(document).ready(function() {
  if (window.logger && logger.hide) {
    logger.hide();
  }
  var channel = new QihuChannel(new MutexAjaxChannel(new AjaxChannel('/subscribe', '/publish')));
  var controller = new ChatController(channel);
  controller.StartReceiveMessage();
  window.g_controller = controller;

  $(window).on('beforeunload', function(){
    controller.StopReceiveMessage();
  });

});

</script>
</body>
</html>
